package com.back_end.Reflection;


/*
* 1.加载到内存,产生class,对应的数据结构
*2.链接,链接结束时 m = 0;
*3.初始化
*   <clinit>(){
*        System.out.println("A类静态代码块初始化:");
*        m = 300;
*        static  int m = 100;
*   }
*
* 最后m=100
*  */
public class ClassLoadTest {

    public static void main(String[] args) {
        A a = new A();
        System.out.println(A.m);
    }

}



class A{
    static {
        System.out.println("A类静态代码块初始化:");
        m = 300;
    }


    static  int m = 100;

    public A(){
        System.out.println("A类的无参构造初始化");
    }


}